<?php
/**
 * The html template file of index method of blog module of ZenTaoPHP.
 *
 * The author disclaims copyright to this source code.  In place of
 * a legal notice, here is a blessing:
 * 
 *  May you do good and not evil.
 *  May you find forgiveness for yourself and forgive others.
 *  May you share freely, never taking more than you give.
 */
?>
<?php include '../../common/view/header.html.php';?>

<div id="sidebar">
<div class="accordion open">
<a href=""  class="accordion-toggle">升级操作<i class="slider_arrow"></i></a>
<div class="accordion-body">
<ul>
<li><?php echo html::a($this->createLink($moduleName,'updateopt'), '升级列表');?></li>
<li class="active"><?php echo html::a($this->createLink($moduleName,'basicconf'), '基础服务配置');?></li>
</div>
</div>
</div>
<div id="main">
    <div class="main_title">升级操作<span class="level_divide">&gt; &gt;</span>基础服务配置</div>
    <div class="main_body info_password">
        <div class="content_block">
            <div class="content_block_title"></div>
            <div id="msg_container"></div>
            <div id="succ_tips" class="succ_tips" style="margin-left:5px;display:none;"></div>
            <div class="content_block_body" id="form_submit" style="padding-top:5px;">
            	<style type="text/css">
                .form .control-label{
					width:200px;
					}
                </style>
                    <form action="" class="form" method="post" name="__form" id="submit_form">
                    <div class="control-group">
                        <label class="control-label" for="">并发处理能力：<!--(ProxyMaxForwards)-->:</label>
                        <div class="controls">
                           <input type="text" name="ProxyMaxForwards" class="input1" value="<?php echo $basicconf_info->ProxyMaxForwards;?>" style="width:160px;" require="true" datatype="number"  msg="代理线程数只能为数字" />
                        </div>
                    </div>
                   
                    <div class="control-group" id="div_submit">
                        <label class="control-label" for=""></label>
                        <div class="controls">
                            <input type="button" class="btn btn-primary" id="btn_submit" value="确定" />
                            
                            <input type="button" class="btn btn-primary" id="btn_reset" value="还原" />
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<?php include '../../common/view/footer.html.php';?>
<script type="text/javascript">
  $(document).ready(function(e) {
	  $('#submit_form').checkForm(1,'btn_submit');
	  
	 $('#btn_submit').click(function(){
		 if($('#submit_form').checkAjaxForm(1)){
			$.post("<?php echo $this->createLink('updateopt','update_basicconf')?>",$("#submit_form").serialize(),
			  function(data){
				  if(data=='success'){
					  tipInfo('修改成功');
					  location.reload();
				  }else{
					  tipInfo('修改失败'); 
				  }
			  });
		  }
	 })
	 
	 $("#btn_reset").click(function(){
	   	location.reload();
	 })
	 
	 
  });
</script>
